<%@include file="package.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@include file="includ.jsp" %>
<%!
int a=0;
%>
<%
request.setCharacterEncoding("utf-8");
String sname=request.getParameter("sname");
String st=request.getParameter("stuno");
 Long stuno=Long.parseLong(st); 
StudentSerive serive=new StudentSerive();
out.print(stuno);
 out.print(sname); 
a=serive.del(stuno,sname); 
%>
 <%if(a>0){
	response.sendRedirect("studentshow.jsp?del='删除成功'");
	
}else{
	out.print("删除失败");
	%>
<a href="studentshow.jsp">查看学生信息</a>

<%} %>

</body>
</html>